package BehavioralMode.command.canteen;

import java.util.HashMap;
import java.util.Map;

/**
 * 命令模式客户端
 */
public class Cilent {

    public static void main(String[] args) {

        Map<String,Integer> menu1 = new HashMap<>();
        menu1.put("青椒肉丝",1);
        menu1.put("鱼香肉丝",1);
        Order order1 = new Order(33,menu1);

        Map<String,Integer> menu2 = new HashMap<>();
        menu2.put("蛋炒饭",1);
        menu2.put("韭菜鸡蛋",1);
        Order order2 = new Order(45,menu1);

        Waiter waiter = new Waiter();
        waiter.orderDishes(order1);
        waiter.orderDishes(order2);


        waiter.Begantocooking();

    }
}
